Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Feature/Webpack & Container 2.0 - #76

Merged
chipbell4 merged 19 commits into
developfrom
feature/webpack
Oct 7, 2019
Merged

chipbell4 merged 19 commits into
developfrom
feature/webpack

Conversation

@SmithAF

@SmithAF SmithAF commented May 2, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@chipbell4
chipbell4 changed the base branch from master to develop October 1, 2019 18:40

@chipbell4 chipbell4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update the container integration to use the new syntax for adding plugins

Comment thread src/embed/index.js Outdated
Comment on lines +23 to +38
container.uses(new UserDataPlugin());
container.uses(new HelpPlugin('#helpButton'));
container.uses(captions);
container.uses(new PausePlugin('#pauseButton, #resumeButton'));
container.uses(
new SoundPlugin({
voButton: '#voButton',
soundButton: '#soundButton',
sfxButton: '#sfxButton',
musicButton: '#musicButton',
voSlider: '#voiceRange',
musicSlider: '#musicRange',
sfxSlider: '#sfxRange',
soundSlider: '#mainVolume'
})
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the uses function is no longer available on the SpringRollContainer. You'll have to switch to the new syntax:

new springroll.Container('selector', {
  plugins: [...]
});

Comment thread src/embed/index.js
query: queryArgs.length ? '?' + queryArgs.join('&') : ''
})
.catch(err => err.json())
.then(({ error }) => alert(error));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't great, but it's better than the old "Invalid API" message 👎

Ideally this sort of permissions check could happen at page load in JS (but that's out of scope for this PR)

@chipbell4

Copy link
Copy Markdown
Contributor

Tests are passing locally with no problems. The failing builds seem to be related to Travis' mongo and chrome version. I'm going to go ahead and merge since we'll be migrating to Github actions soon.

@chipbell4
chipbell4 merged commit 65e6302 into develop Oct 7, 2019
902seanryan pushed a commit that referenced this pull request Nov 7, 2019
Feature/Webpack & Container 2.0
@chipbell4
chipbell4 deleted the feature/webpack branch February 4, 2020 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants